package com.baox.agridata.synchronous.enums;


import lombok.Getter;

/**
 * 统一返回结果状态信息类
 *
 */
@Getter
public enum ResultCodeEnum {

    SUCCESS(200,"成功"),
    FAIL(201, "失败"),
    SERVICE_ERROR(2012, "服务异常"),
    REGION_NOT_MATCH(2013,"区划数据不匹配"),
    ANIMAL_NOT_MATCH(2014,"字典数据不匹配"),
    TRANSPORT_DATA_ERROR(2015,"数据接收传输错误"),
    RECEIVE_UN_DEVELOP(2016,"回收状态还未开发"),
    ANIMAL_A_NOT_EXIST(2017,"动物A证未上传"),
    STATUS_EXCEPTION(2018,"数据状态未匹配"),
    ANIMAL_B_NOT_EXIST(2019,"动物B证未上传"),
    PRODUCT_A_NOT_EXIST(2020,"产品A证未上传"),
    PRODUCT_B_NOT_EXIST(201,"产品B证未上传"),
    MUDING_OK(0,"成功"),
    MUDING_DATA_NULL(0,"未查询到近5日内信息"),
    PARAM_ERROR(202,"请求参数异常"),
    INVALID_CERT(-1,"无效检疫证"),
    CERT_UN_RECEIVE(-1,"失败，动物证未回收"),
    BACK_REPEAT(-1,"失败，请勿重复上传"),
    ACCOUNT_NOT_EXIST(2021,"账号不存在"),
    ROLE_NOT_EXIST(2022,"角色有误"),
    SlaughterHouse_NOT_MATCH(2023,"屠宰场数据不匹配"),
    MISS_REQUIRE_PARAM(2024,"缺少必填参数"),
    FARM_IS_EMPTY(2025,"养殖场信息未查询到！"),
    ANIMAL_IS_EMPTY(2026,"动物检疫合格信息未查询到！"),
    ENTRY_CHECK_RESULT_IS_EMPTY(2027,"入场查验信息未查询到！"),
    PRODUCT_IS_EMPTY(2028,"检疫合格证明未查询到！"),

    ;

    private Integer code;

    private String message;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
